<?php echo js('admin/settings.js');?>
<div id="page-heading"><h1><?php echo lang('settings_edit_title');?></h1></div>
<?php $this->load->view('partials/notices'); ?>
<?php echo form_open('admin/settings/edit', 'class="crud"');?>
<div id="usual-tab" class="usual-tab">
<ul class="idTabs"> 
	<?php foreach($setting_sections as $section_slug => $section_name): ?>
		<li><a href="#<?php echo $section_slug;?>" title="<?php if(lang('settings_section_'.$section_slug)!=''){echo lang('settings_section_'.$section_slug);}else{echo $section_name;}?> settings"><span><?php if(lang('settings_section_'.$section_slug)!=''){echo lang('settings_section_'.$section_slug);}else{echo $section_name;}?></span></a></li>
	<?php endforeach; ?>
</ul> 
<?php foreach($setting_sections as $section_slug => $section_name): ?>
	<div id="<?php echo $section_slug;?>"  class="lang_content">
		<fieldset>
				<table cellspacing="0" cellpadding="0" border="0" width="100%" id="product-table">
				<tbody>
				<?php $section_count = 1; foreach($settings[$section_slug] as $setting): ?>
				<tr <?php if( $section_count++ % 2 == 0):?>class="alternate-row"<?php endif;?>>
					<td width="50%"><?php echo $setting->title; ?>
						<br />
						<?php if($setting->description): echo '<small>'.$setting->description.'</small>'; endif; ?></td>
					<td width="50%"><?php echo $setting->form_control; ?></td>
				</tr>
					<?php endforeach; ?>
				</table>
					
		</fieldset>	
	</div> 
<?php endforeach; ?>
</div> 
<input type="submit" value="" class="form-submit" />
<?php echo form_close(); ?>